#include "HighScoreData.h"
#include <iomanip>
using namespace std;

HighScoreData::HighScoreData()
{
}


HighScoreData::~HighScoreData()
{
}

HighScoreData::HighScoreData(string name, int score)
{
	this->name = name;
	this->score = score;
}

ostream &operator<<(ostream &s, const HighScoreData &score) 
{
	return s << "(name, score)=(" << score.name << ", " << score.score<< ")";
}

istream &operator>>(istream &s, HighScoreData &score)
{
	char c;
	s >> c;
	getline(s, score.name, ',');
	s >> score.score;
	return s;
}

